var RpcClient = require('./frame/RpcClient.js');
var service = require('./servers/ServerTime.js')

var cli = new RpcClient(service);

setTimeout(function() {
	cli.getCurrTime("hello", "world", function(err, hour, min, sec) {
		if (err) return console.log(err);
		console.log('rpc result:', hour, min, sec);
	});

	// return;
	cli.add("hello", " world", function(err, res) {
		if (err) return console.log(err);
		console.log('rpc result:', res);
	});

}, 1000);